<?php 

//1,通过表单让用户推文件
//2,通过脚本接收用户推来的文件，并且保存


 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 <html lang="en">
 <head>
 	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
 	<title>Document</title>
 </head>
 <body>
 	<form action="add.php" method="post" enctype="multipart/form-data">
 		<input type="hidden" name="MAX_FILE_SIZE" value="3000000000000">
 		<input type="file" name="file">
		<!-- <input type="file" name="file[]">
		<input type="file" name="file[]">
		<input type="file" name="file[]" multiple="multiple" /> -->
 		<input type="submit" value="上传">
 	</form>
 	<?php foreach (glob("./*") as $v) { ?>
 		<p><a href="./down.php?url=<?php echo $v ?>">下载 <?php echo $v ?></a>
 		<a href="./del.php?url=<?php echo $v ?>">删除 <?php echo $v ?></a></p>
 	<?php }  ?>


 </body>
 </html>